﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Square : Shape
    {
        private int sideLen;

        public int SideLen { get => sideLen; set => sideLen = value; }

        public override void GetArea(int O)
        {
            
            double area = O * O;

            Console.WriteLine("正方形的面积为：{0}", area);
        }
    }
}
